package service;

import Dao.Product;
import Dao.productImpl;
import domain.User;

import java.util.List;

/**
 * Created by Administrator on 2017/10/19.
 */
public class cartImpl implements Cart {
    @Override
    public List<User> findAll() {
        Product product=new productImpl();
        return product.findAll();
    }

    @Override
    public User findByid(String pid) {
        Product product=new productImpl();
        return product.findByid(pid);
    }
}
